package com.well.register.console.model.job;

import lombok.Getter;

/**
 * <p>
 * server error info
 * </p>
 *
 * @author weedo
 * @since 2022/8/20
 */
@Getter
public enum ErrorInfo {

    JOB_STATUS_ERROR(4001, "Job status error."),

    SERVER_INFO_ERROR(4002, "Job server info error."),

    SERVER_STATUS_ERROR(4003, "No valid server."),

    INVALID_ID(4004, "Invalid job id."),

    PARAM_KEY_EXIST(4005, "Param key %s is exist."),

    INVALID_PARAM_ID(4006, "Invalid job param id."),;


    private Integer code;

    private String msg;

    ErrorInfo(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
